package com.syq.service.impl;

import com.syq.mapper.UserMapper;
import com.syq.pojo.TbUser;
import com.syq.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: UserServcieImpl
 * @Description: TODO
 * @Create by: syq
 * @Date: 2022/7/11 10:22
 */

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;


    @Override
    public List<TbUser> findUser() {
        return userMapper.selectAll();
    }

    @Override
    public String zufang(String name) {
        System.out.println("我是参数"+name);
        System.out.println("我是房东，签个合同");
        System.out.println("我是房东，交个房租");
        System.out.println("我是房东，押三付一");
        return "我是房东";
    }


}
